﻿<UserControl x:Class="DocumentsTagger.UI.View.TagsView"
             xmlns:local="clr-namespace:DocumentsTagger.UI.View"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Margin="5,5,5,5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <ListBox x:Name="lboxTags" 
                 Grid.Column="0"
                 HorizontalAlignment="Stretch" 
                 ItemsSource="{Binding Tags}" 
                 SelectedItem="{Binding SelectedTag, Mode=TwoWay}" 
                 DisplayMemberPath="TagName"/>
        <local:TagDetailsView x:Name="tagDetails" 
                              DataContext="{Binding SelectedTag}"
                              Grid.Column="1" />
    </Grid>
</UserControl>
